// 不同服务 agentroomid 字段信息
const DdzAgentRoomId = 609015;
const MajiangAgentRoomId = 314240;

// 获取用户列表部分
// type: ddz、majiang
function getUserList(type) {
  console.log('getUserList ->', type);
  let offset = 1;
  const limit = 1000;
  const roomId = type === 'ddz' ? DdzAgentRoomId : MajiangAgentRoomId;
  return `userid=522033&agentid=390855&agentroomid=${roomId}&oldagentid=390855&oldagentroomid=${roomId}&gameusertype=8&gameuserstatus=0&offset=${offset}&limit=${limit}&qunzuuserid=522033&gameuserid=&account=wx_opFEzxKFKOSW4YhGfTMI0n8r5oEs&sign=baca8a7c14e29414e33dece32639e7d3&v=0.1442340516398316`;
}

// 获取统计数据部分
function getGameList(type, querydate) {
  console.log('getGameList ->', type, querydate);
  let offset = 1;
  const limit = 1000;
  const roomId = type === 'ddz' ? DdzAgentRoomId : MajiangAgentRoomId;
  return `userid=522033&agentid=390855&agentroomid=${roomId}&oldagentid=390855&oldagentroomid=${roomId}&setletstatus=0&querydate=${querydate}&offset=${offset}&limit=${limit}&roomgametype=all&roomguizetype=0&account=wx_opFEzxKFKOSW4YhGfTMI0n8r5oEs&sign=baca8a7c14e29414e33dece32639e7d3&v=0.1442340516398316`;
}

// 获取用户详细信息
function getUserDetailInfo(userid) {
  console.log('getUserDetailInfo ->', userid);
  return `userid=${userid}&v=0.9352318966405755`;
}

module.exports = {
  getUserList,
  getGameList,
  getUserDetailInfo
};
